package companySupSession;

import java.rmi.RemoteException;

import javax.ejb.CreateException;
import javax.ejb.EJBObject;
import javax.ejb.FinderException;
import javax.naming.NamingException;

import descriptor.CompanyDescriptor;
import descriptor.CompanySupDescriptor;
import descriptor.DegreeDescriptor;
import descriptor.DegreeListDescriptor;
import descriptor.FeedbackDescriptor;
import descriptor.StudentDescriptor;
import descriptor.StudentListDescriptor;

public interface CompanySupSession extends  EJBObject {
	
	
	public boolean logged() throws RemoteException;
	public int log(int companySupId) throws RemoteException;
	public int logout() throws RemoteException;
	public CompanyDescriptor getCompanyDescriptor(int companyId) throws RemoteException, NamingException, CreateException, FinderException;
	public CompanySupDescriptor getCompanySupDescriptor()throws RemoteException;
	public DegreeDescriptor getDegreeDescriptor(int degreeId) throws RemoteException;
	public StudentDescriptor getStudentDescriptor(int studentId)throws RemoteException;
	public FeedbackDescriptor getLinkedFeedBackOnDegree(int degreeId)throws RemoteException;
	public FeedbackDescriptor getLinkedFeedBackOnStudent(int studentId)throws RemoteException;
	public int editFeedBackOnDegree(int degreeId,String infos)throws RemoteException;
	public int editFeedBackOnStudent(int studentId,String infos)throws RemoteException;
	public StudentListDescriptor getPersonnalStudentDescriptors()throws RemoteException;
	public DegreeListDescriptor getPersonnalDegreeDescriptors()throws RemoteException;
	public int editInfos(String oldPassword, String password, String email)throws RemoteException;
	
	
	public int addAStudent(int studentId) throws RemoteException;
	
	

}
